package nio.c2;

import lombok.extern.slf4j.Slf4j;

import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.channels.SocketChannel;

@Slf4j
public class Client {
    public static void main(String[] args) throws IOException {
        SocketChannel sc = SocketChannel.open();
        boolean localhost = sc.connect(new InetSocketAddress("localhost", 7077));
        System.out.println("waitting...");
//        SocketAddress localAddress = sc.getLocalAddress();
//        log.debug("waiting....{}",localAddress);
    }
}
